package book.Test;

import java.sql.Connection;
import java.sql.SQLException;

import org.junit.Test;

import book.dto.Page;
import book.entity.Book;
import book.service.BookService;
import book.service.impl.BookServiceImpl;
import book.utils.JdbcUtils;

public class TestBookService {
	
	BookService bookService = new BookServiceImpl(); 
	
	@Test
	public void getBook() throws SQLException {
		
		Book book = bookService.getBook(1001);
		
		System.out.println(book);
	}
	
	@Test
	public void getBookList() throws SQLException {
		
		Page page = bookService.getBookList(1, 2);
		
		System.out.println(page);
		
	}

}
